Creates a minimal function to change prim properties#4337
Merged
Mayankm96 merged 25 commits intoisaac-sim:mainfrom Jan 12, 2026
Merged
Creates a minimal function to change prim properties#4337Mayankm96 merged 25 commits intoisaac-sim:mainfrom
Mayankm96 merged 25 commits intoisaac-sim:mainfrom
Conversation
Contributor
Greptile SummaryReplaces Kit's Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client as Client Code
participant NewFunc as change_prim_property()
participant USD as USD Stage/Prim
Note over Client,USD: Property Change Flow
Client->>NewFunc: change_prim_property(prop_path, value, stage, ...)
NewFunc->>NewFunc: Get stage handle (if not provided)
NewFunc->>NewFunc: Convert prop_path to Sdf.Path
NewFunc->>NewFunc: Extract prim_path from prop_path
NewFunc->>USD: GetPrimAtPath(prim_path)
USD-->>NewFunc: Return prim (or invalid)
alt Prim invalid
NewFunc-->>Client: Raise ValueError
end
NewFunc->>USD: GetPropertyAtPath(prop_path)
USD-->>NewFunc: Return property (or None)
alt Property doesn't exist
alt type_to_create_if_not_exist provided
NewFunc->>USD: CreateAttribute(name, type, is_custom)
USD-->>NewFunc: Return new property
else No type provided
NewFunc-->>Client: Return False (log error)
end
end
alt value is None
NewFunc->>USD: property.Clear()
else value provided
NewFunc->>USD: property.Set(value, timecode)
end
NewFunc-->>Client: Return True (success)
|
7 tasks
Mayankm96
added a commit
that referenced
this pull request
Jan 12, 2026
# Description Previously the stage in memory test did not check if material binding worked correctly. During my debugging, I saw that the `bind_visual_material` command was failing. This MR adds a fix for it and makes the test check for mateiral binding as well. Requires merging: #4337 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Edify0991
pushed a commit
to Edify0991/IsaacLab
that referenced
this pull request
Jan 14, 2026
# Description This MR introduces a simplified version of the `ChangePrimProperty` command. The original command is designed to handle complex USD layer compositions, but most of our applications do not require this level of functionality. In practice, we either do not support multiple composition layers at all, or only support limited mechanisms such as references or variants. Using the Kit-provided command also introduces unnecessary side effects, such as early stage attachment, due to its reliance on layer-resolving APIs. To avoid this extra coupling and complexity, this MR replaces the command with a lightweight implementation tailored to our actual use cases. ## Type of change - Breaking change (existing functionality will not work without user modification) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Edify0991
pushed a commit
to Edify0991/IsaacLab
that referenced
this pull request
Jan 14, 2026
# Description Previously the stage in memory test did not check if material binding worked correctly. During my debugging, I saw that the `bind_visual_material` command was failing. This MR adds a fix for it and makes the test check for mateiral binding as well. Requires merging: isaac-sim#4337 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
raymondyu5
pushed a commit
to raymondyu5/DexLab
that referenced
this pull request
Jan 15, 2026
# Description Previously the stage in memory test did not check if material binding worked correctly. During my debugging, I saw that the `bind_visual_material` command was failing. This MR adds a fix for it and makes the test check for mateiral binding as well. Requires merging: isaac-sim/IsaacLab#4337 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
nitesh-subedi
pushed a commit
to nitesh-subedi/IsaacLab
that referenced
this pull request
Feb 5, 2026
# Description This MR introduces a simplified version of the `ChangePrimProperty` command. The original command is designed to handle complex USD layer compositions, but most of our applications do not require this level of functionality. In practice, we either do not support multiple composition layers at all, or only support limited mechanisms such as references or variants. Using the Kit-provided command also introduces unnecessary side effects, such as early stage attachment, due to its reliance on layer-resolving APIs. To avoid this extra coupling and complexity, this MR replaces the command with a lightweight implementation tailored to our actual use cases. ## Type of change - Breaking change (existing functionality will not work without user modification) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
nitesh-subedi
pushed a commit
to nitesh-subedi/IsaacLab
that referenced
this pull request
Feb 5, 2026
# Description Previously the stage in memory test did not check if material binding worked correctly. During my debugging, I saw that the `bind_visual_material` command was failing. This MR adds a fix for it and makes the test check for mateiral binding as well. Requires merging: isaac-sim#4337 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This MR introduces a simplified version of the
ChangePrimPropertycommand.The original command is designed to handle complex USD layer compositions, but most of our applications do not require this level of functionality. In practice, we either do not support multiple composition layers at all, or only support limited mechanisms such as references or variants.
Using the Kit-provided command also introduces unnecessary side effects, such as early stage attachment, due to its reliance on layer-resolving APIs. To avoid this extra coupling and complexity, this MR replaces the command with a lightweight implementation tailored to our actual use cases.
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there